package dataservice;

public enum ResultMessage{
	EXIST , NOTEXIST, LOGIN_SUCCESS, USERID_ERROR,
	PASSWORD_ERROR, CHANGE_SUCCESS, 
	PASSWORD_DISMATCH, UPLOAD_SUCCESS, 
	UPLOAD_FAIL, REGISTER_SUCCESS, ADD_USER_SUCCESS,
	DELETE_USER_SUCCESS, INVALID_ID, LOGIN_FAIL, INVALID_PASSWORD, 
	MODIFY_SUCCESS, MODIFY_FAIL, NO_ACCESS, ERROR,
	CHOOSECOURSE_FAIL,CHOOSECOURSE_SUCCESS,MAX_NUM,
	SORT_SUCCESS,SORT_FALURE,

//增加数据
	INSERT_DEPLICATE_PRIMARY,		//有相同的主键
	INSERT_ISNULL,					//非空字段未输入值
	INSERT_SUCCESS,
	INSERT_FAILURE,
	
//删除数据
	DELETE_SUCCESS,
	DELETE_FAILURE,					//一般是删除的对象不存在

//修改数据
	UPDATE_SUCCESS,
	UPDATE_FAILURE,					//一般是修改的对象不存在
	UPDATE_FOREIGNKEY_NOT_EXIST,	//外键不存在，比如选了一门不存在的课程
	UPDATE_DEPLICATE_PRIMARY,		//有相同的主键
	UPDATE_ISNULL,					//非空字段未输入值
	UPDATE_TOO_LONG, DELETE_USER_FAILURE		
}
